package cn.dancepeak.role.mapper;

import cn.dancepeak.role.domain.Role;
import cn.dancepeak.role.query.RoleQuery;

import java.util.List;

public interface RoleMapper {
    void insert(Role role);

    void updateById(Role role);

    void deleteById(Long id);

    void deleteByList(List<Long> ids);

    Role selectById(Long id);

    List<Role> list(RoleQuery roleQuery);

    Role selectByRoleName(String roleName);

    List<Role> getAll();

    void saveRoleMenu(Role role);

    void saveRolePermission(Role role);

    void deleteRolePermissionById(Long id);

    void deleteRoleMenuById(Long id);

}
